package com.cxs.plan.service;

import com.cxs.plan.DTO.RoleDTO;
import com.cxs.plan.VO.RoleVO;
import com.cxs.plan.domain.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【role(角色列表)】的数据库操作Service
* @createDate 2024-03-26 09:55:00
*/
public interface RoleService extends IService<Role> {


    List<Role> selectRoleList(String name);

    void saveRole(RoleDTO role);

    RoleVO selectRoleById(@Param("id") Integer id);

    void updateRole(@Param("role") RoleDTO role);

    void deleteRole(@Param("id") Integer id);

    List<Role> selectAllRole();
}
